﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="GestioneAgentiVendita.aspx.cs" Inherits="Contents_GestioneAgentiVendita"
    EnableEventValidation="false" %>

<%@ Register Src="../Controls/myAnnuncioSql.ascx" TagName="myAnnuncioSql" TagPrefix="uc2" %>
<%@ Register src="../Controls/RicercheAjaxControl.ascx" tagname="RicercheAjaxControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
				<ContentTemplate>--%>
    <asp:HiddenField ID="myIdU" runat="server" />
    <ajax:TabContainer ID="tabContainer1" runat="server" ActiveTabIndex="0" Height="1500px"
        ScrollBars="Auto">
        <ajax:TabPanel ID="TabPanel1" runat="server" HeaderText="Interscambio" ScrollBars="Vertical">
            <HeaderTemplate>
                I tuoi agenti di vendita / Manage your Agents
            </HeaderTemplate>
            <ContentTemplate>
                <table cellspacing="6px" style="background: url('../img/sfondi/barraSfumataBlu.png') repeat-x; width:auto;">
                    <tr>
                        <td valign="top">
                            <uc1:RicercheAjaxControl ID="RicercheAjaxControl1" runat="server" 
                            ShowButtonSearch="true"  />
                        </td>
                                          
                        <td valign="middle" align="center">
                            <br />
                            <asp:ImageButton ID="ShowButton" runat="server" OnClick="ShowButton_Click" Style="width: 25px;
                                height: 25px;" ImageUrl="~/Img/find1.jpg" ToolTip="Cerca/Find" />
                                <br /><br />
                            <asp:ImageButton ID="NewButton" runat="server" ImageUrl="~/Img/addNEW.gif" OnClick="NewButton_Click"
                                ToolTip="Nuovo/New" Style="width: 30px; height: 30px;" />
                                <br />
                                <br />
                            <asp:Button ID="myTuttiButton" runat="server" Text="Mostra tutti" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Literal ID="myLiteralMsg" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
                
               
                <asp:GridView ID="GridViewAnnunci" runat="server" DataKeyNames="ID" CellSpacing="1"
                    BackColor="White" GridLines="None" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px"
                    CellPadding="3" OnSelectedIndexChanging="GridViewAnnunci_SelectedIndexChanging"
                    OnSelectedIndexChanged="GridViewAnnunci_SelectedIndexChanged" AllowPaging="True"
                    AllowSorting="True" OnSorted="GridViewAnnunci_Sorted" OnSorting="GridViewAnnunci_Sorting">
                    <AlternatingRowStyle BorderColor="Blue" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Img/select.jpg" ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" Wrap="False" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </ContentTemplate>
        </ajax:TabPanel>
        <ajax:TabPanel ID="TabPanel2" runat="server" HeaderText="" ScrollBars="Vertical">
            <HeaderTemplate>
                Dati / Data
            </HeaderTemplate>
            <ContentTemplate>
                <uc2:myAnnuncioSql ID="myAnnuncioSql1" runat="server" />
            </ContentTemplate>
        </ajax:TabPanel>
    </ajax:TabContainer>
    <%--	
				</ContentTemplate>
		</asp:UpdatePanel>
		<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
				DynamicLayout="false">
				<ProgressTemplate>
						<div style="background-color: Gray;">
								In aggiornamento / Update is in progress...
						</div>
				</ProgressTemplate>
		</asp:UpdateProgress>--%>
    <br />

    <script type="text/javascript" language="javascript">

        //						var prm = Sys.WebForms.PageRequestManager.getInstance();
        //						prm.add_initializeRequest(initializeRequest);

        //						function initializeRequest(sender, args) {
        //								args.set_cancel(!confirm('Confermi ? '));
        //						}
    </script>

</asp:Content>
